package homework.gui;

import javax.swing.*;

/**
 * @Author(作者) ys
 * @Description(类的描述):   主窗体
 * @Date(创建时间)
 * @version(开发的版本):1.0
 **/
public class StudentFrame  extends JFrame {

    /**
     * 显示数据的面板
     */
    private  ShowTablePanel showTablePanel;
    /**
     * 操作的面板
     */
    private OptionPanel optionPanel;



  public  StudentFrame(){

      this.setSize(800,600);
      this.setResizable(false);
      this.setLayout(null);
      //显示数据的面板
      showTablePanel = new ShowTablePanel();
      showTablePanel.setBounds(0,0,800,500);
      //操作面板
      optionPanel = new OptionPanel(this);
      optionPanel.setBounds(0,500,800,100);

      this.add(showTablePanel);
      this.add(optionPanel);

      this.setDefaultCloseOperation(3);
      this.setLocationRelativeTo(null);
      this.setVisible(true);
  }

    public ShowTablePanel getShowTablePanel() {
        return showTablePanel;
    }

    public static void main(String[] args){
      //new StudentFrame();
        System.out.println(Math.ceil(-12.5));
    }
}
